package com.xbstar.bean;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.validation.constraints.NotNull;

import com.xbstar.tools.Timer;

@Entity
public class UserInfo {
	public UserInfo() {
		this.createdTime = Timer.getCurrentString();
		this.updatedTime = this.createdTime;
	}
	private String createdTime;
	private String updatedTime;
	public String getCreatedTime() {
		return createdTime;
	}

	public void setCreatedTime(String createdTime) {
		this.createdTime = createdTime;
	}

	public String getUpdatedTime() {
		return updatedTime;
	}
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	/**
	 * 用户编号
	 */
	private Long id;
	@NotNull
	/**
	 * 用户名
	 */
	private String name;
	@NotNull
	/**
	 * 密码
	 */
	private String pwd;
	/**
	 * 电话
	 */
	private String tel;
	/**
	 * 用户角色
	 */
	private Long roleId;
	private String nickName;
	private String sex;
	private String province;
	private String city;
	private String country;
	private String headImgUrl;
	private String privilege;
	private String affixBelongTo;
	private String openid;
	public String getOpenid() {
		return openid;
	}

	public void setOpenid(String openid) {
		this.openid = openid;
	}

	public Long getRoleId() {
		return roleId;
	}
	public void setRoleId(Long roleId) {
		this.roleId = roleId;
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPwd() {
		return pwd;
	}
	public void setPwd(String pwd) {
		this.pwd = pwd;
	}
	public String getTel() {
		return tel;
	}
	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getNickName() {
		return nickName;
	}

	public void setNickName(String nickName) {
		this.nickName = nickName;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getProvince() {
		return province;
	}

	public void setProvince(String province) {
		this.province = province;
	}

	public String getCity() {
		return city;
	}

	public void setCity(String city) {
		this.city = city;
	}

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	public String getHeadImgUrl() {
		return headImgUrl;
	}

	public void setHeadImgUrl(String headImgUrl) {
		this.headImgUrl = headImgUrl;
	}

	public String getPrivilege() {
		return privilege;
	}

	public void setPrivilege(String privilege) {
		this.privilege = privilege;
	}

	public String getAffixBelongTo() {
		return affixBelongTo;
	}

	public void setAffixBelongTo(String affixBelongTo) {
		this.affixBelongTo = affixBelongTo;
	}

	public void setUpdatedTime(String updatedTime) {
		this.updatedTime = updatedTime;
	}
	
}
